package com.front.managementfront.driver.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-05-09
 */
@TableName(value = "hkts_real_name_authentication")
@ApiModel(description = "司机认证信息")
public class HktsRealNameAuthentication extends Model<HktsRealNameAuthentication> {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "用户id")
    private String id;
    @ApiModelProperty(value = "创建者")
    private String createBy;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "是否删除",required = true)
    private Integer delFlag;
    @ApiModelProperty(value = "修改者")
    private String updateBy;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "用户身份证反面照片地址",required = true)
    private String backIdCardPath;
    @ApiModelProperty(value = "车牌号",required = true)
    private String carCode;
    @ApiModelProperty(value = "副驾驶照片地址",required = true)
    private String copilotPath;
    @ApiModelProperty(value = "用户驾驶证照片地址",required = true)
    private String driverLicenseHomePath;
    @ApiModelProperty(value = "用户驾驶证副页照片地址",required = true)
    private String driverLicenseSubPath;
    @ApiModelProperty(value = "司机姓名",required = true)
    private String driverName;
    @ApiModelProperty(value = "行驶证主页照片地址",required = true)
    private String drivingLicensePath;
    @ApiModelProperty(value = "车辆车型",required = true)
    private String ehicleType;
    @ApiModelProperty(value = "用户身份证照片地址",required = true)
    private String idCardPath;
    @ApiModelProperty(value = "身份证号码",required = true)
    private String identity;
    @ApiModelProperty(value = "用户人车和照地址",required = true)
    private String peopleCarsPath;
    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "车长",required = true)
    private String vehicleLength;
    //approvalTime
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "认证时间")
    private LocalDateTime approvalTime;

    @ApiModelProperty(value = "认证人")
    private String approvalUser;
    @ApiModelProperty(value = "0：自动审核；1：人工审核")
    private String approvalType;

    public String getApprovalType() {
        return approvalType;
    }

    public void setApprovalType(String approvalType) {
        this.approvalType = approvalType;
    }

    public String getApprovalUser() {
        return approvalUser;
    }

    public void setApprovalUser(String approvalUser) {
        this.approvalUser = approvalUser;
    }

    public LocalDateTime getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(LocalDateTime approvalTime) {
        this.approvalTime = approvalTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getBackIdCardPath() {
        return backIdCardPath;
    }

    public void setBackIdCardPath(String backIdCardPath) {
        this.backIdCardPath = backIdCardPath;
    }

    public String getCarCode() {
        return carCode;
    }

    public void setCarCode(String carCode) {
        this.carCode = carCode;
    }

    public String getCopilotPath() {
        return copilotPath;
    }

    public void setCopilotPath(String copilotPath) {
        this.copilotPath = copilotPath;
    }

    public String getDriverLicenseHomePath() {
        return driverLicenseHomePath;
    }

    public void setDriverLicenseHomePath(String driverLicenseHomePath) {
        this.driverLicenseHomePath = driverLicenseHomePath;
    }

    public String getDriverLicenseSubPath() {
        return driverLicenseSubPath;
    }

    public void setDriverLicenseSubPath(String driverLicenseSubPath) {
        this.driverLicenseSubPath = driverLicenseSubPath;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getDrivingLicensePath() {
        return drivingLicensePath;
    }

    public void setDrivingLicensePath(String drivingLicensePath) {
        this.drivingLicensePath = drivingLicensePath;
    }

    public String getEhicleType() {
        return ehicleType;
    }

    public void setEhicleType(String ehicleType) {
        this.ehicleType = ehicleType;
    }

    public String getIdCardPath() {
        return idCardPath;
    }

    public void setIdCardPath(String idCardPath) {
        this.idCardPath = idCardPath;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getPeopleCarsPath() {
        return peopleCarsPath;
    }

    public void setPeopleCarsPath(String peopleCarsPath) {
        this.peopleCarsPath = peopleCarsPath;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getVehicleLength() {
        return vehicleLength;
    }

    public void setVehicleLength(String vehicleLength) {
        this.vehicleLength = vehicleLength;
    }

    public static final String ID = "id";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String BACK_ID_CARD_PATH = "back_id_card_path";

    public static final String CAR_CODE = "car_code";

    public static final String COPILOT_PATH = "copilot_path";

    public static final String DRIVER_LICENSE_HOME_PATH = "driver_license_home_path";

    public static final String DRIVER_LICENSE_SUB_PATH = "driver_license_sub_path";

    public static final String DRIVER_NAME = "driver_name";

    public static final String DRIVING_LICENSE_PATH = "driving_license_path";

    public static final String EHICLE_TYPE = "ehicle_type";

    public static final String ID_CARDPATH = "id_card_path";

    public static final String IDENTITY = "identity";

    public static final String PEOPLE_CARS_PATH = "people_cars_path";

    public static final String USER_ID = "user_id";

    public static final String VEHICLE_LENGTH = "vehicle_length";

    public static final String APPROVAL_TIME = "approval_time";

    public static final String APPROVAL_USER = "approval_user";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsRealNameAuthentication{" +
                ", id=" + id +
                ", createBy=" + createBy +
                ", createTime=" + createTime +
                ", delFlag=" + delFlag +
                ", updateBy=" + updateBy +
                ", updateTime=" + updateTime +
                ", backIdCardPath=" + backIdCardPath +
                ", carCode=" + carCode +
                ", copilotPath=" + copilotPath +
                ", driverLicenseHomePath=" + driverLicenseHomePath +
                ", driverLicenseSubPath=" + driverLicenseSubPath +
                ", driverName=" + driverName +
                ", drivingLicensePath=" + drivingLicensePath +
                ", ehicleType=" + ehicleType +
                ", idCardpath=" + idCardPath +
                ", identity=" + identity +
                ", peopleCarsPath=" + peopleCarsPath +
                ", userId=" + userId +
                ", vehicleLength=" + vehicleLength +
                ", approvalTime=" + approvalTime +
                ", approvalUser=" + approvalUser +
                "}";
    }
}
